package pub.tbc.toolkit.math;

/**
 * @author tbc on 2016/10/18 11:46:47.
 */
public class Numbers {

    public static Integer sumInt(Iterable<Integer> iterable) {
        int sum = 0;
        for (Integer anIterable : iterable) {
            sum += anIterable;
        }
        return sum;
    }

    public static Double sumDouble(Iterable<Double> iterable) {
        double sum = 0.0;
        for (Double anIterable : iterable) {
            sum += anIterable;
        }
        return sum;
    }



}
